<header class="city-head flex">
    <div class="city-return">
        <i class="iconfont">&#xe606;</i>
    </div>
    <div class="city-input">选择城市</div>
</header>
<section class="elt-city widthMax">
    <dl class="am-cf">
        <dt>当前城市</dt>
        <dd class="elt-loction flex">
            <div class="flex-1">
                <i class="iconfont">&#xe600;</i>
                <a href="javascript:;" id="position-city"><?php echo $cityName;?></a>
            </div>
            <i id="goto-position" class="iconfont elt-icon">&#xe602;</i>
        </dd>
    </dl>
    <dl class="am-cf elt-hot">
        <dt>热门城市</dt>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=北京' ?>" data-id="52">北京</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=上海' ?>" data-id="321">上海</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=广州' ?>" data-id="76">广州</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=深圳' ?>" data-id="77">深圳</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=天津' ?>" data-id="343">天津</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=杭州' ?>" data-id="383">杭州</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=苏州' ?>" data-id="221">苏州</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=宁波' ?>" data-id="388">宁波</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=桂林' ?>" data-id="98">桂林</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=黄山' ?>" data-id="44">黄山</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=武汉' ?>" data-id="180">武汉</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=郑州' ?>" data-id="149">郑州</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=西安' ?>" data-id="311">西安</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=哈尔滨' ?>" data-id="167">哈尔滨</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=重庆' ?>" data-id="394">重庆</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=青岛' ?>" data-id="284">青岛</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=烟台' ?>" data-id="297">烟台</a></dd>
        <dd><a href="<?php echo site_url('scenic/home/changeCity').'?cityName=成都' ?>" data-id="322">成都</a></dd>
    </dl>
    <dl class="am-cf elt-spell">
        <dt>拼音搜索</dt>
        <dd><a href="<?php echo $currentUrl.'#A' ?>">A</a></dd>
        <dd><a href="<?php echo $currentUrl.'#B' ?>">B</a></dd>
        <dd><a href="<?php echo $currentUrl.'#C' ?>">C</a></dd>
        <dd><a href="<?php echo $currentUrl.'#D' ?>">D</a></dd>
        <dd><a href="<?php echo $currentUrl.'#E' ?>">E</a></dd>
        <dd><a href="<?php echo $currentUrl.'#F' ?>">F</a></dd>
        <dd><a href="<?php echo $currentUrl.'#G' ?>">G</a></dd>
        <dd><a href="<?php echo $currentUrl.'#H' ?>">H</a></dd>
        <dd><a href="<?php echo $currentUrl.'#J' ?>">J</a></dd>
        <dd><a href="<?php echo $currentUrl.'#K' ?>">K</a></dd>
        <dd><a href="<?php echo $currentUrl.'#L' ?>">L</a></dd>
        <dd><a href="<?php echo $currentUrl.'#M' ?>">M</a></dd>
        <dd><a href="<?php echo $currentUrl.'#N' ?>">N</a></dd>
        <dd><a href="<?php echo $currentUrl.'#P' ?>">P</a></dd>
        <dd><a href="<?php echo $currentUrl.'#Q' ?>">Q</a></dd>
        <dd><a href="<?php echo $currentUrl.'#R' ?>">R</a></dd>
        <dd><a href="<?php echo $currentUrl.'#S' ?>">S</a></dd>
        <dd><a href="<?php echo $currentUrl.'#T' ?>">T</a></dd>
        <dd><a href="<?php echo $currentUrl.'#W' ?>">W</a></dd>
        <dd><a href="<?php echo $currentUrl.'#X' ?>">X</a></dd>
        <dd><a href="<?php echo $currentUrl.'#X' ?>">Y</a></dd>
        <dd><a href="<?php echo $currentUrl.'#X' ?>">Z</a></dd>
    </dl>
    <dl class="am-cf elt-hot">
        <dt id="A">A</dt>
        <?php $i='A';foreach($allCities as $item): ?>
            <?php if ($item->region_abbr{0} != $i) :?>
                <?php $i = $item->region_abbr{0};?>
                <dt id="<?php echo $item->region_abbr{0};?>"><?php echo $item->region_abbr{0};?></dt>
            <?php else : ?>
                <dd>
                    <a href="<?php echo site_url('scenic/home/changeCity').'?cityName='.$item->region_name ?>" data-id="<?php echo $item->region_id;?>">
                        <?php echo $item->region_name;?>
                    </a>
                </dd>
            <?php endif;?>
        <?php endforeach; ?>
    </dl>
</section>